
	function ajouter(){
xhr = new XMLHttpRequest();
var URL="add.php?login="+document.getElementById("login").value+"&pwd="+document.getElementById("pwd").value+"&email="+document.getElementById("email").value;
	xhr.open("GET",URL,true);
	xhr.send(null);
	xhr.onreadystatechange= resultat;
	
	function resultat (){
		
		
		}
	}
function ajoutercol(){
xhr = new XMLHttpRequest();
var URL="addcol.php?login="+document.getElementById("logincol").value+"&pwd="+document.getElementById("pwdcol").value+"&email="+document.getElementById("emailcol").value;
	xhr.open("GET",URL,true);
	xhr.send(null);
	xhr.onreadystatechange= resultat;
	
	function resultat (){
		
		
		}
	}

function deleete(x){
	if(confirm("Delete ?"+x)){
	xhr = new XMLHttpRequest();
	var URL="delete.php?x="+x;
	xhr.open("GET",URL,true);
	xhr.send(null);
	xhr.onreadystatechange= resultat;
	}
	
	function resultat (){
		
		alert(xhr.responseText);
		}
	
	
	}
	function deleetecol(x){
	if(confirm("Delete?")){
	xhr = new XMLHttpRequest();
	var URL="deletecol.php?x="+x;
	xhr.open("GET",URL,true);
	xhr.send(null);
	xhr.onreadystatechange= resultat;
	}
	
	function resultat (){
		
		
		}
	
	
	}
	
	
// JavaScript Document